<?php

namespace app\admin\model\live;

use app\common\model\TimeModel;

class Live extends TimeModel
{

    protected $name = "live";

    protected $deleteTime = "delete_time";

    public function setLiveCanDaysAttr($value)
    {
        return strtotime($value);
    }

    public function hosts()
    {
        return $this->belongsTo(LiveHost::class,'live_master','id');
    }
    
    

}